﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 用户测评
    /// </summary>
    [Table("usr_HealthEvaluationLog"), Comment("用户测评")]
    public class HealthEvaluationLog : EfEntity
    {
        /// <summary>
        /// 分类
        /// 1：入门级问答
        /// 2：专业问答
        /// </summary
        [Comment("分类 1：入门级问答 2：专业问答")]
        public int Classify { get; set; }

        /// <summary>
        /// 用户
        /// </summary>
        [Comment("用户ID")]
        public long User { get; set; }

        /// <summary>
        /// 评测时间
        /// </summary>
        [Comment("评测时间")]
        public DateTime EvaluationTime { get; set; }

        /// <summary>
        /// 评测时间
        /// </summary>
        [Comment("答题时间")]
        public DateTime? SubmitTime { get; set; }

        /// <summary>
        /// 报告生成时间
        /// </summary>
        [Comment("报告生成时间")]
        public DateTime? ReportTime { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Comment("性别"),MaxLength(10)]
        public string Sex { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Comment("年龄")]
        public int Age { get; set; }

        /// <summary>
        /// Bmi得分
        /// </summary>
        [Comment("Bmi得分"), Column(TypeName = "decimal(10,2)")]
        public decimal Bmi { get; set; }

        /// <summary>
        /// Bmr得分
        /// </summary>
        [Comment("Bmr得分"), Column(TypeName = "decimal(10,2)")]
        public decimal Bmr { get; set; }

        /// <summary>
        /// 总评测得分
        /// </summary>
        [Comment("总评测得分")]
        public int TotalPoints { get; set; }
    }
}
